<?php

/** @see Waveself_CodeMarker_Abstract */
require_once 'Waveself/CodeMarker/Abstract.php';

/**
 * Enter description here...
 *
 */
class Waveself_CodeMarker_Adapters_Php extends Waveself_CodeMarker_Abstract 
implements Waveself_CodeMarker_Adapters_Interface 
{
	/**
	 * Current, CodeMarker component siglenton instance
	 *
	 * @var NULL|Waveself_CodeMarker
	 */
	protected static $_instance = null;
	
	/**
	 * Enter description here...
	 *
	 * @var unknown_type
	 */
	private $_code = null;
	
	/**
	 * Create CodeMarker siglenton instance.
	 *
	 * @return Waveself_CodeMarker
	 */
	public static function getInstance()
	{
		if (!isset(self::$_instance)) self::$_instance = new self;
		return self::$_instance;
	}

	function __construct($options=null)
	{}
	
	/**
	 * Enter description here...
	 *
	 * @param unknown_type $options
	 */
	public function setOptions($options)
	{
		
	}
	
	/**
	 * Enter description here...
	 *
	 * @param unknown_type $name
	 * @param unknown_type $value
	 */
	public function setOption($name, $value)
	{
		
	}
	
	/**
	 * Enter description here...
	 *
	 * @param unknown_type $name
	 */
	public function getOption($name)
	{
		
	}
	
	/**
	 * Enter description here...
	 *
	 * @param unknown_type $code
	 */
	public function prepare($code)
	{
		$this->_code = $code;
		return $this;
	}
	
	public function render()
	{
		echo $this->_code;
	}
}